package Operation;

public class FloDouDemo {
    public static void main(String[] args) {
//        float f = 1.1;
//        float f1 = 1.1f;

//        short s = 1000;
//        s += 100000000000000;
//        System.out.println(s);
        int i = 10000000;
        short e = 1;
//        e += i;
        // 相当于将 e + i 的计算结果进行了向下转型
        e = (short)(e + i);
        System.out.println(e);

//        long x = 111;
//        switch (x) { // Incompatible types. Found: 'long', required: 'char, byte, short, int, Character, Byte, Short, Integer, String, or an enum'
//            case 111:
//                System.out.println(111);
//                break;
//            case 222:
//                System.out.println(222);
//                break;
//        }
    }
}
